<template>
    <view class="wrap">
        <view class="nav-title">
            <view class="nav-info">
                <view class="nav-title__text">成绩信息</view>
                <view class="nav-slogan">查看考试成绩</view>
            </view>
        </view>
        <view class="list-wrap">
            <u-cell-group title-bg-color="rgb(243, 244, 246)" v-for="(item, index) in content" :key="index">
               <u-card :title="item.ssCompetitionEntity.cName" :sub-title="subTitle" :thumb="thumb">
               		<view class="" slot="body">
                       科目:{{ item.cSubject }}<br>
                       成绩:{{ item.cResult }}
               		</view>
               	</u-card>
            </u-cell-group>
        </view>
        <u-gap height="70"></u-gap>
    </view>
</template>

<script>
export default {
    data() {
        return {
           content: [],
           user: {}
        }
    },
    computed: {
    },
    onShow() {
        uni.setNavigationBarTitle({
            title: '成绩'
        })
    },
    created() {},
    onLoad() {
         this.user = uni.getStorageSync('user_info')
        this.getData()
    },
    methods: {
        openPage(item) {
        },
        getGroupTitle(item) {
            return item.groupName
        },
        getFieldTitle(item) {
            return item.title
        },
        getData() {
            this.$u.get('/apps/ssResultsEntity', { idUser: this.user.id }).then(res => {
                this.content = res.content
            })
        }
    }
}
</script>

<style lang="less" scoped>
.u-cell-icon {
    width: 36rpx;
    height: 36rpx;
    margin-right: 8rpx;
}
.nav-wrap {
    padding: 15px;
    position: relative;
}

.lang {
    position: absolute;
    top: 15px;
    right: 15px;
}

.nav-title {
    /* #ifndef APP-NVUE */
    display: flex;
    /* #endif */
    flex-direction: row;
    align-items: center;
}

.nav-info {
    margin-left: 15px;
}



.logo {
    width: 70px;
    /* #ifndef APP-NVUE */
    height: auto;
    /* #endif */
}

</style>
